<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Edit page the the object 'Ficha'</title>

    <script src="../js/jquery-2.1.1.js" type="application/javascript"></script>
    <script src="../js/jquery-ui.js" type="application/javascript"></script>
    <link href="../css/jquery-ui.css" rel="stylesheet">
    <link href="../css/jquery-ui.structure.css" rel="stylesheet">
    <link href="../css/jquery-ui.theme.css" rel="stylesheet">

    <script src="../bootstrap/js/bootstrap.js"></script>
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet">

    <script src="../js/coma.js" type="application/javascript"></script>
    <link href="../css/index.css" rel="stylesheet">

    <script>
        $(function () {

            $(document).ready(function () {
                $('.date').datepicker({
                    pickDate: true,
                    showToday: true,
                    useStrict: true,
                });
            });
        });
    </script>

</head>

<body style="max-width: 1024px;">

    <div id="filter">
        <form id="ficha_list_filter" class="form-horizontal" object="Ficha" type="filter">
            <fieldset>
                <!-- Form Name -->
                <legend>Búsqueda de fichas</legend>

                <!-- Text input-->
                <div class="row">
                    <div class="form-group col-md-5">
                        <label class="col-md-4 control-label" for="filter_nombre">Nombre</label>
                        <div class="col-md-8">
                            <input id="filter_nombre" name="filter_nombre" type="text" placeholder="Indique un nombre de la película" class="form-control input-md">

                        </div>

                        <label class="col-md-4 control-label" for="filter_descripcion">Descripción</label>
                        <div class="col-md-8">
                            <input id="filter_descripcion" name="filter_descripcion" type="text" placeholder="Indique una descripción o una parte" class="form-control input-md">

                        </div>

                        <label class="col-md-4 control-label" for="filter_fechaRecepcionInit">Recepción</label>

                        <div class="col-md-4">
                            <input id="filter_fechaRecepcionInit" type="text" placeholder="Desde" class="form-control input-md date">
                        </div>

                        <div class="col-md-4">
                            <input id="filter_fechaRecepcionEnd" type="text" placeholder="Hasta" class="form-control input-md date">
                        </div>

                        <label class="col-md-4 control-label" for="filter_nombre">Empresa</label>
                        <div class="col-md-8">
                            <select id="idEmpresa" class="form-control input-md">
                                <option>(Seleccione)</option>
                            </select>
                        </div>
                    </div>

                    <!-- Text input-->
                    <div class="form-group col-md-3">
                        <label class="col-md-4 control-label" for="filter_estado">Estado</label>
                        <div class="col-md-8">
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="pendiente" checked=true>No finalizado</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="recibido">Recibido</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="producido">Pdte Enviar</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="enviado">Pdte Facturar</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="facturado">Pdte Cobrar</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="cobrado">Cobrado</label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input id="rdo_todo" name="optionsEstado" type="radio" value="todo">Todos</label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group col-md-4">
                        <label class="col-md-3 control-label" for="filter_tipo">Tipo</label>
                        <div class="col-md-9">
                            <div class="radio">
                                <label>
                                    <input id="chk_enviar" name="optionsTipo" type="radio" value="todos" checked=true onchange="radioTipoChanged(this)">Todos</label>
                            </div>
                            <div class="radio">

                                <label>
                                    <input id="chk_enviar" name="optionsTipo" type="radio" value="peliculas" onchange="radioTipoChanged(this)">Películas</label>

                            </div>
                            <div class="radio">
                                <label>
                                    <input id="chk_enviar" name="optionsTipo" type="radio" value="series" onchange="radioTipoChanged(this)">Series</label>

                                <select id="idSerieSerie" class="form-control input-md">
                                    <option>(Seleccione)</option>
                                </select>

                            </div>
                            <div class="radio">

                                <label>
                                    <input id="chk_enviar" name="optionsTipo" type="radio" value="documentales" onchange="radioTipoChanged(this)">Documentales</label>
                                <select id="idSerieDocumental" class="form-control input-md">
                                    <option>(Seleccione)</option>
                                </select>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="row">


                </div>
                <div class="row">
                    <!-- Button -->
                    <div class="form-group">
                        <div class="col-md-4">
                        </div>
                        <div class="col-md-6">
                            <button id="filter_buscar" class="btn btn-primary" onclick="search(event)">Buscar</button>
                            <button id="filter_clear" class="btn btn-inverse" onclick="clearFilters()">Limpiar</button>
                        </div>
                        <div class="col-md-2">
                            <button id="filter_buscar" class="btn btn-success" onclick="edit('Ficha', -1)">Crear nueva</button>
                        </div>
                    </div>
                </div>


            </fieldset>
        </form>
        <div id="ficha_list_results" object="Ficha" type="list" style="text-align: center;">

        </div>
    </div>
</body>

</html>